<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/WEB-INF/template/login.xhtml">

	<ui:define name="areaLogin">


		<p>Login to access secure pages:</p>
		<h:outputText value="Username o password non corretti riprova" style="color:red;" />
		<form method='post' action='j_security_check'>
			<h:messages layout='table' errorStyle='background: #AFEEEE;'
				infoStyle='background: #AFEEEE;' globalOnly='true' />
			<h:panelGrid columns='2' styleClass="myTable3">
				<h:outputLabel value='Username: ' />
				<input type='text' id='j_username' name='j_username' />
				<h:outputLabel value='Password: ' />
				<input type='password' id='j_password' name='j_password' />
				<h:outputText value='' />
				<h:panelGrid columns='1'>
					<input type='submit' name='submit' value='Login' onclick="selezionaDatiAdmin();" />
				</h:panelGrid>
			</h:panelGrid>
				
	
		</form>
		
		
		
		<h:form>
			
		
			
			
			<a4j:jsFunction name="selezionaDatiAdmin"
				action="#{ordineFatturaController.findDatiForDashAdmin()}"
				 render="pannelloFattureInScadenza pannelloOrdiniNonFatturati pannelloClientiAttivi"
				 />

	
		
		</h:form>
			<a4j:status name="StatoLogin"
				onstart="#{rich:component('processOrdine')}.show();"
				onstop="#{rich:component('processOrdine')}.hide();" />

		<ui:include src="/popup/popupsUtility.xhtml" />
	</ui:define>



</ui:composition>

